//
//  InfoMsgCell.m
//  Nurse
//
//  Created by RainSets on 12/22/13.
//  Copyright (c) 2013 RainSets. All rights reserved.
//

#import "InfoMsgCell.h"

@implementation InfoMsgCell

- (id)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier
{
    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    if (self) {
        // Initialization code
    }
    return self;
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated
{
    [super setSelected:selected animated:animated];
    // Configure the view for the selected state
}

- (void)layoutSubviews {
    [super layoutSubviews];
    if (self.showingDeleteConfirmation && [self.subviews count]) {
        NSLog(@"subviews==%@",self.subviews);
        UIScrollView *vv = [self.subviews objectAtIndex:0];
        
        [vv setContentOffset:CGPointMake(110, 0.f) animated:YES];
        [vv setScrollEnabled:NO];
//        [vv setFrame:CGRectMake(vv.frame.origin.x - 100, vv.frame.origin.y, vv.frame.size.width, vv.frame.size.height)];
    }
}

@end
